package cn.itcast.java.lambda;

/**
 * Author itcast
 * Date 2021/10/13 7:23
 * Desc TODO
 */
public class AddableDemo {
    public static void main(String[] args) {

        useAddable(
                (x,y)-> x+y*2
        );
    }

    public static void useAddable(Addable a){
        int add = a.add(10, 20);
        System.out.println(add);
    }
}
